<div id="decView"></div>
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
<div class="layui-card-body">
    <div id="invoiceView"></div>
</div>

<!--发票明细-->
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>发票明细</span></div>
<div class="layui-card-body">
    <table class="layui-hide" id="member-list" lay-filter="member-list"></table>
</div>

<!--费用明细-->
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>费用明细</span></div>
<div class="layui-card-body">
    <table class="layui-hide" id="cost-list" lay-filter="cost-list"></table>
</div>

<script type="text/html" id="invoiceViewTemp">
    {{# if(!isEmpty(d.customerReason)){ }}
        <div class="layui-row">
            {{# if(d.customerReason == 'OK'){ }}
            <blockquote class="layui-elem-quote success">客户已同意税收分类编码：{{d.customerReason}}</blockquote>
            {{# }else{ }}
            <blockquote class="layui-elem-quote">客户不同意税收分类编码：{{d.customerReason}}</blockquote>
            {{# } }}
        </div>
    {{# } }}
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">系统单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单编号：</label><label class="fval">{{d.orderNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">合同号：</label><label class="fval">{{removeNull(d.saleContractNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">实际发票号：</label><label class="fval">{{removeNull(d.invoiceNo)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">状态：</label><label class="fval">{{d.statusDesc}}</label></div>
        <div class="layui-col-md3"><label class="fkey">申请日期：</label><label class="fval">{{d.applyDate}}</label></div>
        <div class="layui-col-md3"><label class="fkey">确认日期：</label><label class="fval">{{removeNull(d.confirmDate)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">实际开票日期：</label><label class="fval">{{removeNull(d.invoiceDate)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">购货单位：</label><label class="fval">{{removeNull(d.buyerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">纳税人识别号：</label><label class="fval">{{removeNull(d.buyerTaxpayerNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.buyerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">银行联系人：</label><label class="fval">{{removeNull(d.buyerLinkPerson)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行电话：</label><label class="fval">{{removeNull(d.buyerBankTel)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{d.buyerBankAddress}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">销货单位：</label><label class="fval">{{removeNull(d.sellerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.sellerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.sellerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{removeNull(d.sellerBankAddress)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">结算类型：</label><label class="fval">{{removeNull(d.taxTypeDesc)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">开票类型：</label><label class="fval">{{removeNull(d.invoiceTypeDesc)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">开票金额：</label><label class="fval">{{removeNull(d.invoiceVal)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">税点：</label><label class="fval">{{removeNull(d.taxPoint)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">快递单号：</label><label class="fval">{{removeNull(d.expressNo)}}</label></div>
        <div class="layui-col-md3"></div>
        <div class="layui-col-md3"></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">开票要求：</label><label class="fval">{{removeNull(d.requirement)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">备注：</label><label class="fval">{{removeNull(d.memo)}}</label></div>
    </div>
</script>
<script type="text/html" id="isFirstTemp">
    {{# if(d.isFirst){}}<i class="fa fa-check-circle-o green-a"></i> {{#}}}
</script>